package com.jingtai.shop.webfacade.bo.goods;

import com.jingtai.common.webfacade.BaseBO;
import com.jingtai.common.webfacade.error.CommonException;
import com.jingtai.common.webfacade.error.ErrorEnum;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * 查询商品详情入参
 */
@Data
public class GoodsDetailsBO extends BaseBO {

    /**
     * 商品编码
     */
    private  String goodsCode;

    @Override
    public void validate() {
        super.validate();
        if (StringUtils.isBlank(goodsCode)){
            throw new CommonException(ErrorEnum.REQUIRED_PARAM_EMPTY);
        }
    }
}
